Python for civil and structural engineers by Vittorio Lora
Author:Vittorio Lora [Lora, Vittorio]
Language: eng
Format: epub
Publisher: Amazon.com
Published: 2019-09-30T05:00:00+00:00
Plotting the results
The library matplotlib (used for plotting) will be explained in the next chapter. For now just copy the following code in an empty cell and run it:
1 2 3 4 5 6 7 8 9 10 11
import matplotlib.pyplot as plt fig = plt.figure(figsize=(8,8)) ax = plt.subplot(211) ax.invert_yaxis() combos.loc[:,pd.IndexSlice[:,"M"]].plot(ax=ax) ax = plt.subplot(212) ax.invert_yaxis() combos.loc[:,pd.IndexSlice[:,"V"]].plot(ax=ax)
Matplotlib
In this chapter you will learn how to visualize various kinds of data using the functionalities offered by Matplotlib. Those who have used MatLab at some point in their lives will find this library somewhat familiar. Indeed Matplotlib was written to mimic the behaviour of Matlab, at least to some extent. In the vast landscape of python libraries matplotlib as become virtually the only library that people use to plot data. Like all the libraries we have seen so far matplotlib is in a sense the "industry standard" to do this kind of task.
In this chapter you will find many code examples that showcase some of the functionalities of matplotlib. The main goal is to give you the tools necessary so that you know what to do in order to obtain a certain type of plot. In the end, however, everything comes down to personal taste. In fact I believe that tinkering and experimenting is the best way to learn how matplotlib works.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Hands-On Python Deep Learning for the Web by Anubhav Singh(2033)
Mastering OpenCV 4 with Python by Fernández Villán Alberto;(1947)
Python Feature Engineering Cookbook by Soledad Galli(1935)
Applied Deep Learning with Keras by Matthew Moocarme Mahla Abdolahnejad and Ritesh Bhagwat(1774)
Building Serverless Python Web Services with Zappa by Abdulwahid Abdulhaque Barguzar(1741)
Python for Finance: Analyze Big Financial Data by Yves Hilpisch(1737)
Python for Finance Cookbook by Eryk Lewinson(1719)
Mastering Python Data Visualization by Kirthi Raman(1705)
PYTHON PROGRAMMING ADVANCED: The Guide for Data Analysis and Data Science. Discover Machine Learning With the Optimum Recipes for Mastering Python and ... (Crash Course Tips and Tricks Book 3) by ERIC MATTHEWS & LEWIS TAYLOR(1656)
Django 3 By Example by Antonio Melé(1614)
Supervised Machine Learning with Python by Taylor Smith(1597)
Interactive Data Visualization with Python by Anshu Kumar & Shubhangi Hora & Sharath Chandra Guntuku & Abha Belorkar(1449)
Hands-On GPU Programming with Python and CUDA by Dr. Brian Tuomanen(1368)
Hands-On Image Processing with Python by Sandipan Dey(1336)
Scientific Computing with Python 3 by Claus Fuhrer & Jan Erik Solem & Olivier Verdier(1325)
Flask Framework Cookbook by Shalabh Aggarwal(1300)
Python Deep Learning. by Ivan Vasilev(1276)
Training Systems using Python Statistical Modeling by Curtis Miller(1269)
Django 3 Web Development Cookbook - Fourth Edition by Aidas Bendoraitis(1259)
